<template>
	<div class="card">
		<el-button @click="backRoute" class="button" link type="primary"><el-icon><Back /></el-icon>返回</el-button>
        <span>{{props.title}}</span>
	</div>
</template>

<script lang="ts" setup>
const props = defineProps({
	title: {
		type: String,
		default: '',
	},
});
//返回
const emit=defineEmits(["backRoute"])
const backRoute=()=>{
    emit("backRoute")
}
</script>
<style scoped lang="scss">
.card {
	width:100%;
    height: 60px;
    line-height: 60px;
    font-size: 20px;
    .button{
        margin-left: 10px;
    }
    span{
        margin-left: 20px;
    }
}
</style>
